var setMarker = function(){
var length = resultList.length ;
for ( var i = 0 ; i < length ; i ++ ){
var marker = new google.maps.Marker({
position: new google.maps.LatLng(resultList[i].latitude,resultList[i].longitude),
map: map,
title: resultList[i].ssid
});
var content = 'SSID : ' + resultList[i].ssid + '</br>MAC : ' + resultList[i].mac + '</br>Level : ' + resultList[i].level
+ '</br>Latitude : ' + resultList[i].latitude + '</br>Longitude : ' + resultList[i].longitude ;
attachSecretMessage(marker,content) ;
}
}
function attachSecretMessage(marker, content) {
var infowindow = new google.maps.InfoWindow({
content: content ,
size: new google.maps.Size(200, 200)
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(marker.get('map'), marker);
});
}